﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace AutoTestEntry.Utility
{
    class FileTree
    {
        public enum TYPES
        {
            TYPE_FILE,
            TYPE_DIR,
            TYPE_UNDEF
        }

        public readonly TYPES Type;
        public readonly String Path;
        public int Size { get; set; }
        private List<FileTree> children = new List<FileTree>();

        public FileTree(TYPES type, String path)
        {
            Type = type;
            Path = path;
        }

        public void AddChild(FileTree child)
        {
            children.Add(child);
        }

        public FileTree[] GetAllChildren()
        {
            return children.ToArray();
        }
    }
}
